package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.Department;
import cn.edu.sdjzu.xg.eagle.entity.School;
import cn.edu.sdjzu.xg.eagle.exception.BaseException;

import java.sql.SQLException;
import java.util.Collection;
public interface DepartmentInterface {
    Department find(Long id) throws SQLException, BaseException;

    Collection<Department> findAll() throws SQLException, BaseException;

    boolean add(Department department) throws SQLException, BaseException;

    boolean update(Department department) throws SQLException, BaseException;

    boolean delete(Long id) throws SQLException, BaseException;

    int countAll(School school) throws SQLException, BaseException;
}
